{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  var Calendar = function Calendar(props) {\n    var customizePrefixCls = props.prefixCls,\n      className = props.className,\n      style = props.style,\n      dateFullCellRender = props.dateFullCellRender,\n      dateCellRender = props.dateCellRender,\n      monthFullCellRender = props.monthFullCellRender,\n      monthCellRender = props.monthCellRender,\n      headerRender = props.headerRender,\n      value = props.value,\n      defaultValue = props.defaultValue,\n      disabledDate = props.disabledDate,\n      mode = props.mode,\n      validRange = props.validRange,\n      _props$fullscreen = props.fullscreen,\n      fullscreen = _props$fullscreen === void 0 ? true : _props$fullscreen,\n      onChange = props.onChange,\n      onPanelChange = props.onPanelChange,\n      onSelect = props.onSelect;\n    var _React$useContext = React.useContext(ConfigContext),\n      getPrefixCls = _React$useContext.getPrefixCls,\n      direction = _React$useContext.direction;\n    var prefixCls = getPrefixCls('picker', customizePrefixCls);\n    var calendarPrefixCls = \"\".concat(prefixCls, \"-calendar\");\n    var _useStyle = useStyle(prefixCls),\n      _useStyle2 = _slicedToArray(_useStyle, 2),\n      wrapSSR = _useStyle2[0],\n      hashId = _useStyle2[1];\n    var today = generateConfig.getNow();\n    // ====================== State =======================\n    // Value\n    var _useMergedState = useMergedState(function () {\n        return value || generateConfig.getNow();\n      }, {\n        defaultValue: defaultValue,\n        value: value\n      }),\n      _useMergedState2 = _slicedToArray(_useMergedState, 2),\n      mergedValue = _useMergedState2[0],\n      setMergedValue = _useMergedState2[1];\n    // Mode\n    var _useMergedState3 = useMergedState('month', {\n        value: mode\n      }),\n      _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n      mergedMode = _useMergedState4[0],\n      setMergedMode = _useMergedState4[1];\n    var panelMode = React.useMemo(function () {\n      return mergedMode === 'year' ? 'month' : 'date';\n    }, [mergedMode]);\n    // Disabled Date\n    var mergedDisabledDate = React.useCallback(function (date) {\n      var notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    var triggerPanelChange = function triggerPanelChange(date, newMode) {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    var triggerChange = function triggerChange(date) {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    var triggerModeChange = function triggerModeChange(newMode) {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    var onInternalSelect = function onInternalSelect(date) {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date);\n    };\n    // ====================== Locale ======================\n    var getDefaultLocale = function getDefaultLocale() {\n      var locale = props.locale;\n      var result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    var dateRender = React.useCallback(function (date) {\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(\"\".concat(prefixCls, \"-cell-inner\"), \"\".concat(calendarPrefixCls, \"-date\"), _defineProperty({}, \"\".concat(calendarPrefixCls, \"-date-today\"), isSameDate(today, date)))\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: \"\".concat(calendarPrefixCls, \"-date-value\")\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: \"\".concat(calendarPrefixCls, \"-date-content\")\n      }, dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender]);\n    var monthRender = React.useCallback(function (date, locale) {\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      var months = locale.shortMonths || generateConfig.locale.getShortMonths(locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(\"\".concat(prefixCls, \"-cell-inner\"), \"\".concat(calendarPrefixCls, \"-date\"), _defineProperty({}, \"\".concat(calendarPrefixCls, \"-date-today\"), isSameMonth(today, date)))\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: \"\".concat(calendarPrefixCls, \"-date-value\")\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: \"\".concat(calendarPrefixCls, \"-date-content\")\n      }, monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender]);\n    return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n      componentName: \"Calendar\",\n      defaultLocale: getDefaultLocale\n    }, function (contextLocale) {\n      var _classNames3;\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(calendarPrefixCls, (_classNames3 = {}, _defineProperty(_classNames3, \"\".concat(calendarPrefixCls, \"-full\"), fullscreen), _defineProperty(_classNames3, \"\".concat(calendarPrefixCls, \"-mini\"), !fullscreen), _defineProperty(_classNames3, \"\".concat(calendarPrefixCls, \"-rtl\"), direction === 'rtl'), _classNames3), className, hashId),\n        style: style\n      }, headerRender ? headerRender({\n        value: mergedValue,\n        type: mergedMode,\n        onChange: onInternalSelect,\n        onTypeChange: triggerModeChange\n      }) : /*#__PURE__*/React.createElement(CalendarHeader, {\n        prefixCls: calendarPrefixCls,\n        value: mergedValue,\n        generateConfig: generateConfig,\n        mode: mergedMode,\n        fullscreen: fullscreen,\n        locale: contextLocale.lang,\n        validRange: validRange,\n        onChange: onInternalSelect,\n        onModeChange: triggerModeChange\n      }), /*#__PURE__*/React.createElement(RCPickerPanel, {\n        value: mergedValue,\n        prefixCls: prefixCls,\n        locale: contextLocale.lang,\n        generateConfig: generateConfig,\n        dateRender: dateRender,\n        monthCellRender: function monthCellRender(date) {\n          return monthRender(date, contextLocale.lang);\n        },\n        onSelect: onInternalSelect,\n        mode: panelMode,\n        picker: panelMode,\n        disabledDate: mergedDisabledDate,\n        hideHeader: true\n      }));\n    }));\n  };\n  return Calendar;\n}\nexport default generateCalendar;","map":{"version":3,"names":["classNames","PickerPanel","RCPickerPanel","useMergedState","React","ConfigContext","LocaleReceiver","CalendarHeader","enUS","useStyle","generateCalendar","generateConfig","isSameYear","date1","date2","getYear","isSameMonth","getMonth","isSameDate","getDate","Calendar","props","customizePrefixCls","prefixCls","className","style","dateFullCellRender","dateCellRender","monthFullCellRender","monthCellRender","headerRender","value","defaultValue","disabledDate","mode","validRange","fullscreen","onChange","onPanelChange","onSelect","useContext","getPrefixCls","direction","calendarPrefixCls","wrapSSR","hashId","today","getNow","mergedValue","setMergedValue","mergedMode","setMergedMode","panelMode","useMemo","mergedDisabledDate","useCallback","date","notInRange","isAfter","triggerPanelChange","newMode","triggerChange","triggerModeChange","onInternalSelect","getDefaultLocale","locale","result","Object","assign","lang","dateRender","createElement","String","padStart","monthRender","months","shortMonths","getShortMonths","componentName","defaultLocale","contextLocale","type","onTypeChange","onModeChange","picker","hideHeader"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/calendar/generateCalendar.js"],"sourcesContent":["import classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  const Calendar = props => {\n    const {\n      prefixCls: customizePrefixCls,\n      className,\n      style,\n      dateFullCellRender,\n      dateCellRender,\n      monthFullCellRender,\n      monthCellRender,\n      headerRender,\n      value,\n      defaultValue,\n      disabledDate,\n      mode,\n      validRange,\n      fullscreen = true,\n      onChange,\n      onPanelChange,\n      onSelect\n    } = props;\n    const {\n      getPrefixCls,\n      direction\n    } = React.useContext(ConfigContext);\n    const prefixCls = getPrefixCls('picker', customizePrefixCls);\n    const calendarPrefixCls = `${prefixCls}-calendar`;\n    const [wrapSSR, hashId] = useStyle(prefixCls);\n    const today = generateConfig.getNow();\n    // ====================== State =======================\n    // Value\n    const [mergedValue, setMergedValue] = useMergedState(() => value || generateConfig.getNow(), {\n      defaultValue,\n      value\n    });\n    // Mode\n    const [mergedMode, setMergedMode] = useMergedState('month', {\n      value: mode\n    });\n    const panelMode = React.useMemo(() => mergedMode === 'year' ? 'month' : 'date', [mergedMode]);\n    // Disabled Date\n    const mergedDisabledDate = React.useCallback(date => {\n      const notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    const triggerPanelChange = (date, newMode) => {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    const triggerChange = date => {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    const triggerModeChange = newMode => {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    const onInternalSelect = date => {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date);\n    };\n    // ====================== Locale ======================\n    const getDefaultLocale = () => {\n      const {\n        locale\n      } = props;\n      const result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    const dateRender = React.useCallback(date => {\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameDate(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender]);\n    const monthRender = React.useCallback((date, locale) => {\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      const months = locale.shortMonths || generateConfig.locale.getShortMonths(locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameMonth(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender]);\n    return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n      componentName: \"Calendar\",\n      defaultLocale: getDefaultLocale\n    }, contextLocale => /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(calendarPrefixCls, {\n        [`${calendarPrefixCls}-full`]: fullscreen,\n        [`${calendarPrefixCls}-mini`]: !fullscreen,\n        [`${calendarPrefixCls}-rtl`]: direction === 'rtl'\n      }, className, hashId),\n      style: style\n    }, headerRender ? headerRender({\n      value: mergedValue,\n      type: mergedMode,\n      onChange: onInternalSelect,\n      onTypeChange: triggerModeChange\n    }) : /*#__PURE__*/React.createElement(CalendarHeader, {\n      prefixCls: calendarPrefixCls,\n      value: mergedValue,\n      generateConfig: generateConfig,\n      mode: mergedMode,\n      fullscreen: fullscreen,\n      locale: contextLocale.lang,\n      validRange: validRange,\n      onChange: onInternalSelect,\n      onModeChange: triggerModeChange\n    }), /*#__PURE__*/React.createElement(RCPickerPanel, {\n      value: mergedValue,\n      prefixCls: prefixCls,\n      locale: contextLocale.lang,\n      generateConfig: generateConfig,\n      dateRender: dateRender,\n      monthCellRender: date => monthRender(date, contextLocale.lang),\n      onSelect: onInternalSelect,\n      mode: panelMode,\n      picker: panelMode,\n      disabledDate: mergedDisabledDate,\n      hideHeader: true\n    }))));\n  };\n  return Calendar;\n}\nexport default generateCalendar;"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,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